// eslint-disable-next-line import/no-extraneous-dependencies
import { Navigate } from "react-router-dom";
import React from "react";
import Home from "../pages/home";
import Login from "../pages/login";

import NotFound from "../pages/not-found";
import Gateway from "../pages/gateway";
import CreateGateway from "../pages/gateway/create";

const routers = [
  {
    path: "/",
    element: <Navigate to="/login" />
  },
  {
    path: "/login",
    element: <Login />
  },
  {
    path: "/error/404",
    element: <NotFound />
  },
  {
    path: "/home",
    element: <Home />
  },
  {
    path: "/gateway",
    element: <Gateway />
  },
  {
    path: "/CreateGateway",
    element: <CreateGateway />
  }
];
export default routers;
